Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: pass complete security context to pods #1679

Merged
merged 1 commit into from
Feb 28, 2024

Conversation

niklastreml
Copy link
Contributor

This pr fixes an issue with the operator when deploying a FluentdConfig in our cluster. We have a security policy, that enforces our users to set a security context on their pods. We noticed that it was not possible to deploy a fluentd using the FluentdConfig resource, because the ConfigCheck and the FluentD pod would violate our policies, even when Security.SecurityContext and Security.PodSecurityContext were set correctly, because they were missing supplementalGroups. After some investigation, we found, that the pods that are created by the operator only had some of the values set on the security object in the FluentdConfig resource. This PR updates the fluentd statefulset and its components, so they should now include the whole securityContext object. I tested this locally and everything seemed to work fine.

@pepov pepov added the enhancement New feature or request label Feb 28, 2024
@pepov pepov merged commit db85ac6 into kube-logging:release-4.5 Feb 28, 2024
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants